package com.neusoft.yuejian_01.service;

import com.neusoft.yuejian_01.javabean.IsTrainReg;
import com.neusoft.yuejian_01.javabean.NoRegBean;
import com.neusoft.yuejian_01.javabean.TrainBean;
import com.neusoft.yuejian_01.javabean.TrainRegBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/2.
 */

public interface TrainService {
    // http://10.0.2.2/neu_yuejian14/API/Train/getTrainlist
    @GET("Train/getTrainlist")
    Call<List<TrainBean>> getTrainlist();

    @GET("Train/getTrainRTypelist")
    Call<List<TrainBean>> getTrainRTypelist();

    @GET("Train/getTrainJTypelist")
    Call<List<TrainBean>> getTrainJTypelist();

    @GET("Train/getTrainGTypelist")
    Call<List<TrainBean>> getTrainGTypelist();
    //http://localhost/neu14_yuejian/API/Train/getTraindetail/t_id/2
    @GET("Train/getTraindetail")
    Call<TrainBean> getTraindetail(@Query("t_id") String t_id);
    //http://localhost/neu14_yuejian/API/Train/getTrainSearchlist/t_name/l
    @GET("Train/getTrainSearchlist")
    Call<List<TrainBean>> getTrainSearchlist(@Query("t_name") String t_name);
    //http://localhost/neu14_yuejian/API/Train/addTrainRegistration/u_id/1/t_id/4
    @GET("Train/addTrainRegistration")
    Call<TrainRegBean> addTrainRegistration(@Query("u_id") String u_id,
                                            @Query("t_id") String t_id);
    //http://localhost/neu14_yuejian/API/Train/getIsReg/u_id/4/t_id/1
    @GET("Train/getIsReg")
    Call<IsTrainReg> getIsReg(@Query("u_id") String u_id,
                              @Query("t_id") String t_id);
    //http://localhost/neu14_yuejian/API/Train/getIsNotReg/u_id/4/t_id/2
    @GET("Train/getIsNotReg")
    Call<NoRegBean> getIsNotReg(@Query("u_id") String u_id,
                                @Query("t_id") String t_id);
    //http://localhost/neu14_yuejian/API/Train/getTrainRegistration/u_id/1/t_id/4
    @GET("Train/getTrainRegistration")
    Call<TrainRegBean> getTrainRegistration(@Query("u_id") String u_id,
                                            @Query("t_id") String t_id);

}
